package com.bank.bank.common.base.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Transaction {
    private Integer id;
    private Integer fromAccountId;
    private Integer toAccountId;
    private Double amount;
    private String type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
}
